package com.yh.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yh.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Reference
    private DemoService demoService;

    @GetMapping("/first")
    public String first(String name){
        System.out.println("name-----------------------"+name);
        return demoService.sayHello(name);
    }
}
